package models

type Article struct {
	Id          int
	Title       string
	Content     string
	ContentHtml string
	Img         string
	AddTime     int
	NavId       int
	Tag         []Tag `gorm:"many2many:tag_article" gorm:"-"`
	Nav         []Nav `gorm:"ForeignKey:Id;AssociationForeignKey:NavId" gorm:"-"`
}

func (Article) TableName() string {
	return "article"
}
